USE [PaltopDatabase]
GO

/****** Object:  Table [dbo].[DeleteList]    Script Date: 02/07/2012 12:52:16 ******/
SET ANSI_NULLS ON
GO

SET QUOTED_IDENTIFIER ON
GO

CREATE TABLE [dbo].[DeleteList](
	[AccountID] [int] NOT NULL,
	[DeleteDate] [datetime] NOT NULL,
 CONSTRAINT [PK_DeleteList] PRIMARY KEY CLUSTERED 
(
	[AccountID] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]

GO



CREATE procedure [dbo].[clearDeleteList]
@numberOfDays int
as
delete from DeleteList
where DeleteDate<dateadd(day,-@numberOfDays,getdate())
GO


